package com.ahp.service.impl;

import java.util.List;

import com.ahp.bean.Factor;
import com.ahp.dao.FactorDao;
import com.ahp.service.FactorService;

public class FactorServiceImpl implements FactorService {
	private FactorDao factorDao;

	public FactorDao getFactorDao() {
		return factorDao;
	}

	public void setFactorDao(FactorDao factorDao) {
		this.factorDao = factorDao;
	}

	public boolean addFirstFactor(Factor factor){
		return factorDao.addFirstFactor(factor);
	}
	
	public List<Factor> findFirstFactor(int id){
		return factorDao.findFirstFactor(id);
	}
	
	public List<Factor> findSecondFactor(int id){
		return factorDao.findSecondFactor(id);
	}
	
	public boolean removeFactor(int id){
		return factorDao.removeFactor(id);
	}
}
